package com.tc.enums;

import com.tc.bean.User;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @Auther: tianchao
 * @Date: 2021/10/18 09:04
 * @Description:
 */
@RestController
@RequestMapping("/test")
@Slf4j
public class TestController {

    @PostMapping("/post")
    public User post(User user, HttpServletRequest request){
        log.info("request: {}",request);
        log.info("user::: {}",user);
        return user;
    }
}
